import React, { Component } from 'react'
import {BrowserRouter as Router,Route,Switch,Redirect} from 'react-router-dom'
import Bzb from '../view/bzb'
import Xx from '../view/xx'
import Zdy from '../view/zdy'
import Xq from '../view/xq'
export default class router extends Component {
    render() {
        return (
            <div>
                <Router>
                    <Switch>
                        <Route path='/bzb' component={Bzb} />
                        <Route path='/xx' component={Xx} />
                        <Route path='/zdy' component={Zdy} />
                        <Route path='/xq' component={Xq} />
                        <Redirect from ='/' to='/bzb'  />
                    </Switch>
                </Router>
            </div>
        )
    }
}
